﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.OracleClient;
using System.Configuration;
using Xiaov.SmartWeb.Application.SupCan;

namespace Xiaov.SmartWeb.Application.StatisticsReport
{
    public partial class YT_TZZBData : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {             
                string nf = Request.QueryString["nf"];
                string yf = Request.QueryString["yf"];
                string dwbm = Request.QueryString["dwbm"];                               
                string dataString = ConfigurationManager.AppSettings["YTTZZB_Column"];
                string sql = "select " + dataString + " from v_cj_yt_tzzb where nf=" + nf + " and yf=" + yf + " and dwbm='" + dwbm + "' order by pxbm";
                DataSet ds = Maticsoft.DBUtility.DbHelperOra.Query(sql);                
                ConvertToXml.Convert(ds.Tables[0], dataString, 0, ds.Tables[0].Rows.Count);
            }
        }
    }
}